Make about:logging work on mobile
Categories
(Core :: XPCOM, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox139 | --- | fixed |
People
(Reporter: padenot, Assigned: julienw)
References
(Blocks 2 open bugs, Regressed 1 open bug)
Details
(Whiteboard: [fxp])
Attachments
(9 files, 3 obsolete files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
970.27 KB,
video/webm
|
Details | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
We need to use proper branding instead of duplicating -profiler-brand-name
, and have CSS that's more suited to a mobile device.
Reporter | ||
Comment 1•2 years ago
|
||
There's no background.jsm.js
on mobile so there is a bit of work needed. We might be able to call into the profiler via js directly or something.
Reporter | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 months ago
|
||
Assignee | ||
Comment 4•2 months ago
|
||
Assignee | ||
Comment 5•2 months ago
|
||
Assignee | ||
Comment 6•2 months ago
|
||
Updated•2 months ago
|
Assignee | ||
Comment 7•2 months ago
|
||
Assignee | ||
Comment 8•2 months ago
|
||
Assignee | ||
Comment 9•2 months ago
|
||
This will make it possible to add some utilitary javascript files
without cluttering the main directory toolkit/content.
Assignee | ||
Updated•2 months ago
|
Comment 10•2 months ago
|
||
Comment on attachment 9473923 [details]
WIP: Bug 1803607 - Convert recording-utils.js to a ES module r=canaltinova
Revision D242689 was moved to bug 1957016. Setting attachment 9473923 [details] to obsolete.
Comment 11•2 months ago
|
||
Comment on attachment 9473924 [details]
WIP: Bug 1803607 - Split background.sys.mjs into smaller files r=canaltinova
Revision D242690 was moved to bug 1957016. Setting attachment 9473924 [details] to obsolete.
Comment 12•2 months ago
|
||
Comment on attachment 9474823 [details]
WIP: Bug 1803607 - Move the capturing profile part to recording-utils.sys.mjs r=canaltinova
Revision D243184 was moved to bug 1957016. Setting attachment 9474823 [details] to obsolete.
Updated•2 months ago
|
Assignee | ||
Comment 13•2 months ago
|
||
Assignee | ||
Updated•2 months ago
|
Assignee | ||
Comment 14•2 months ago
|
||
Updated•2 months ago
|
Assignee | ||
Comment 15•2 months ago
|
||
Assignee | ||
Comment 16•2 months ago
|
||
Hey Tom,
In this work I want to be able to upload a Firefox profile from the about:logging page. The upload is a POST to https://api.profiler.firefox.com, so I added this origin to a connect-src
entry in the CSP. But this triggers the crash in https://searchfox.org/mozilla-central/rev/5fb48bf50516ed2529d533e5dfe49b4752efb8b8/dom/security/nsContentSecurityUtils.cpp#1847.
What do you suggest to make this work?
Thanks!
Assignee | ||
Comment 17•2 months ago
|
||
Ah I see with Tom's other email that he's blocked his needinfo requests.
Hey other Tom :-) do you have any recommendation about my previous question in comment 16?
Comment 18•2 months ago
|
||
You can use connect-src https:
and add the URL about:logging
to the sConnectSrcHttpsAllowList
. I can also provide a patch that would make it possible use the whole URL as a source for connect-src
.
Updated•2 months ago
|
Assignee | ||
Comment 19•2 months ago
|
||
(In reply to Tom Schuster from comment #18)
You can use
connect-src https:
and add the URLabout:logging
to thesConnectSrcHttpsAllowList
. I can also provide a patch that would make it possible use the whole URL as a source forconnect-src
.
Ah thanks!
Yes I believe it could be good to be able to specify the stricter URL. I can file a bug for that and I'll let you assess the priority.
Comment 20•2 months ago
|
||
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Assignee | ||
Comment 21•2 months ago
|
||
Here is a video of the current patch.
Assignee | ||
Comment 22•2 months ago
|
||
Assignee | ||
Comment 23•2 months ago
|
||
Hey Tom, in attachment 9475460 [details], I'm adding a test for this patch. In this test I want to test upload of the profile data. I used https://example.com, but then I had to add an entry for this host to the CSP as well. I don't feel like this is a good solution but I don't see any other.
Is that OK? Would you see an alternative solution for that?
Thanks !
Comment 24•2 months ago
|
||
Good question. I don't really know enough about frontend testing, but what I do know that example.com is a valid domain that we don't control, so we should not allow access to it. Maybe we could add support for firefox.com domain similar to this https://searchfox.org/mozilla-central/source/build/pgo/server-locations.txt#361-362 ?
Assignee | ||
Comment 25•2 months ago
•
|
||
It looks like this was easier than expected.
The process isn't well documented: all that's needed is add a line to server-locations.txt then run ./mach python build/pgo/genpgocert.py
like mentioned in https://firefox-source-docs.mozilla.org/build/buildsystem/test_certificates.html (but there's no need to add a certspec
file! if all you need is adding a new host to the default certificate). => Bug 1958861
Note: I think the mochitest entry is server-locations.txt is broken, at least for "normal" http requests, as the served request doesn't seem to have a certificate that includes this DNS name. I filed Bug 1958854 for this.
Assignee | ||
Comment 26•2 months ago
•
|
||
New try build => https://treeherder.mozilla.org/jobs?repo=try&revision=b936acb5b18d6b9ff765d0500f3c8cc0d3fcf848
update: new try build including Tom's patch => https://treeherder.mozilla.org/jobs?repo=try&revision=3250f1877dfea44aae97e085b0df20c8fabf6644
Comment 27•2 months ago
|
||
Comment 28•2 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ae1bbf9636b3
https://hg.mozilla.org/mozilla-central/rev/e6f5e8d0bed4
https://hg.mozilla.org/mozilla-central/rev/30c1813faa67
https://hg.mozilla.org/mozilla-central/rev/f08c06c707d7
https://hg.mozilla.org/mozilla-central/rev/2cef71f8e54b
https://hg.mozilla.org/mozilla-central/rev/605a43ed5fa8
https://hg.mozilla.org/mozilla-central/rev/2899bb9eeaae
https://hg.mozilla.org/mozilla-central/rev/70705c6013fa
Description
•